<?php

namespace App\Middleware;

use Slim\Middleware\JwtAuthentication;

class AdminJwt extends JwtAuthentication
{
    // "secure" => false,
    // "path" => ["/"],
    // "passthrough" => ['/user/token'],
    // "secret" => getenv('JWT_USER_SECRET'),
    // "algorithm" => ["HS256", "HS384"],
    // "callback" => function ($request, $response, $args) use ($container) {
    //     $container["jwt"] = $args["decoded"];
    //  }

    // private $options = [
    //     "secure" => false,
    //     "relaxed" => ["localhost", "127.0.0.1"],
    //     "environment" => ["HTTP_AUTHORIZATION", "REDIRECT_HTTP_AUTHORIZATION"],
    //     "algorithm" => ["HS256", "HS512", "HS384"],
    //     "header" => "Authorization",
    //     "regexp" => "/Bearer\s+(.*)$/i",
    //     "cookie" => "token",
    //     "attribute" => "token",
    //     "path" => null,
    //     "passthrough" => ['/admin/token'],
    //     "callback" => null,
    //     "error" => function($request, $response, $args) {
    //         return $this->error();
    //     }
    // ];
    //
    // public function __construct()
    // {
    //     parent::__construct($options);
    // }
    //
}
